-- Style
-- Create by weism
-- 玩家系别等相关定义

-- 系别
FIRE     = 0x01; -- 火
WATER    = 0x02; -- 水
THUNDER  = 0x04; -- 雷
LIGHTER  = 0x08; -- 光
DARK     = 0x10; -- 暗
EARTH    = 0x20; -- 土
ELEMENT  = 0x40; -- 元素

-- 宠物系别
DEPARTMENT_FIGHTER   =   0x01    -- 战斗
DEPARTMENT_WIZARD    =   0x02    -- 魔法
DEPARTMENT_RISKER    =   0x04    -- 冒险
DEPARTMENT_DRAGON    =   0x08    -- 巨龙

-- 偏向
PHYSICAL     = 0x01; -- 攻
PHY_MAGIC    = 0x02; -- 偏攻
BALANCE      = 0x04; -- 平衡
MAGIC_PHY    = 0x08; -- 偏魔
MAGIC        = 0x10; -- 魔

BUFF        = 0x01;
SPECIAL     = 0x02;
AOE         = 0x04;
DAMAGE      = 0x08;
RECOVER     = 0x10;
DEBUFF     =  0x20;

-- 大预言术类型
AOE_SKILL     = 0x01;
SINGLE_SKILL  = 0x02;
RECOVER_SKILL = 0x04;
SPECIAL_SKILL = 0x08;
TIME_SKILL    = 0x10;
BUFF_SKILL    = 0x20;

-- 根据属性ID取得其描述
function getNameByAttr(attr)
    if attr == FIRE        then return getLocStr("type_name_fire");
    elseif attr == WATER   then return getLocStr("type_name_ice");
    elseif attr == THUNDER then return getLocStr("type_name_thunder");
    elseif attr == LIGHTER then return getLocStr("type_name_lighter");
    elseif attr == DARK    then return getLocStr("type_name_dark");
    elseif attr == EARTH   then return getLocStr("type_name_earth");
    elseif attr == "all"   then return "";
    elseif attr == "damage"   then return getLocStr("type_name_damage");
    elseif attr == "assist"   then return getLocStr("type_name_assist");
    elseif attr == "cure"   then return getLocStr("type_name_cure");
    else return "";
    end
end

-- 根据属性ID取得其描述magic_last
function getNameByTypes(attr)
    if attr == "all"   then return getLocStr("all_type_name");
    elseif attr == "damage"   then return getLocStr("type_damage_name");
    elseif attr == "assist"   then return getLocStr("type_assist_name");
    elseif attr == "cure"   then return getLocStr("type_cure_name");
    else return "";
    end
end

-- 根据系ID取得其描述
function getNameByDep(dep)
    if dep == DEPARTMENT_FIGHTER       then return getLocStr("type_name_department_fighter");
    elseif dep == DEPARTMENT_WIZARD    then return getLocStr("type_name_department_wizard");
    elseif dep == DEPARTMENT_RISKER    then return getLocStr("type_name_department_risker");
    elseif dep == DEPARTMENT_DRAGON    then return getLocStr("type_name_department_dragon");
    else return "";
    end
end

-- 根据稀有度取得其描述
function getNameByStar(star)
    if star == 1        then return getLocStr("start_name_1");
    elseif star == 2    then return getLocStr("start_name_2");
    elseif star == 3    then return getLocStr("start_name_3");
    elseif star == 4    then return getLocStr("start_name_4");
    elseif star == 5    then return getLocStr("start_name_5");
    elseif star == 6    then return getLocStr("start_name_6");
    else return "";
    end
end

-- 物件类型定义
OBJECT_TYPE_USER            = 0x0002;
OBJECT_TYPE_MONSTER         = 0x0004;
OBJECT_TYPE_PET             = 0x0008;
OBJECT_TYPE_BINE            = 0x0010;
OBJECT_TYPE_SUMMON          = 0x0020;
OBJECT_TYPE_GHOST_SHIP      = 0x0040;
OBJECT_TYPE_SKYFIGHTER      = 0x0080;
OBJECT_TYPE_TREE_HOUSE      = 0x0100;
OBJECT_TYPE_ITEM            = 0x0200;
OBJECT_TYPE_MASTER          = 0x0400;
OBJECT_TYPE_CONTAINER       = 0x0800;
OBJECT_TYPE_DRAMA           = 0x1000;
OBJECT_TYPE_GANG            = 0x2000;
OBJECT_TYPE_BISHOP          = 0x8000;
OBJECT_TYPE_AVALON_CANNON   = 0x10000;
OBJECT_TYPE_STEAM_MACHINE   = 0x20000;

-- 冈布奥获取类型
DUNGEON         = 0x01    -- 关卡
DUNGEON_EGG     = 0x02    -- 关卡彩蛋
EGG             = 0x04    -- 普通彩蛋
RARE            = 0x08    -- 稀有
SPECIALS        = 0x10    -- 特殊
MARKET          = 0x20    -- 商城
SKY             = 0x40    -- 天空战
OTHER           = 0x80    -- 未开放
ACTIVITY        = 0x100   -- 活动
